package com.ai.bitcoin.service.impl;

import com.ai.bitcoin.constant.CodeConstant;
import com.ai.bitcoin.jpa.dao.BitCoinAdDao;
import com.ai.bitcoin.output.GeneralReponse;
import com.ai.bitcoin.service.AdService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AdServiceImpl implements AdService {

    @Autowired
    private BitCoinAdDao bitCoinAdDao;

    @Override
    public GeneralReponse query() {
        return new GeneralReponse(CodeConstant.SUCCESS,bitCoinAdDao.query());
    }

}
